package com.ews.onlineexchange.rest;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.transaction.Transactional;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;

/**
 * 消息通知接口
 * @author
 *
 */
@Path(value = "/server")
@Transactional
public class ServerDateRest {
	@GET
	@Path("/getServerDate")
	@Produces("text/html; charset=UTF-8")
	@Context
	public String getServerDate() throws Exception{
        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return sf.format(new Date());
	}
	
}
